doxygen_input = 
static_pages =
#
# To support pdf format
#Please install 
#On Debian or Ubuntu
#sudo apt-get install texlive
# 
#On Fedora
#yum install tetex
#
dox: html/index.html 
#pdf

html/index.html: Doxyfile $(doxygen_input)
	"/usr/bin/doxygen"

# Make tarfile to distribute the HTML documentation.
doc-dist: dox
	cp $(static_pages) html
	tar -czf $(PACKAGE)-docs-$(VERSION).tar.gz -C html .


pdf: cppunit.pdf
cppunit.pdf:
	$(MAKE) -C latex pdf
	ln -s ./latex/refman.ps	 udk.ps
	ln -s ./latex/refman.pdf udk.pdf

clean-local:
	-@rm -rf latex
	-@rm -rf html man udk.ps udk.pdf

clean:clean-local
	
